-
-
Notifications
You must be signed in to change notification settings - Fork 448
Fix issue #4501 Exception noise from OAuth and REST (API2 ) #4642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
How about to add |
I have thought about new exception class. I am hesitant because I do not think there is any custom code that would extend it, if there is, it's easy to fix. This avoid adding more code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is okay for now?
Another approach would be to check the log-level (like show them on debug/info?)
Co-authored-by: Sven Reichel <[email protected]>
Co-authored-by: Sven Reichel <[email protected]>
Co-authored-by: Sven Reichel <[email protected]>
|
Already reviewed by @Hanmac . |
This one has a PHPstan error. Did you check it? |
All lights green here? |
@addison74 there was an outdated PHPstan error, that got fixed with a later commit |
…penMage#4642) * Fix issue OpenMage#4501 Exception noise from OAuth and REST (API2 ) * Update app/code/core/Mage/Api2/Model/Resource.php * Update app/code/core/Mage/Api2/Exception.php Co-authored-by: Sven Reichel <[email protected]> * Update app/code/core/Mage/Api2/Exception.php Co-authored-by: Sven Reichel <[email protected]> * Update app/code/core/Mage/Api2/Exception.php Co-authored-by: Sven Reichel <[email protected]> * Update app/code/core/Mage/Api2/Exception.php --------- Co-authored-by: Sven Reichel <[email protected]>
Description (*)
See issue #4501. This PR added
$shouldLog
as an optional parameter inMage_APi2_Exception
, any code that extends it and overrides the constructor with the old signature would break.Related Pull Requests
Fixed Issues (if relevant)